package com.experiment06;

public class Ship {
    private double totalWeight;
    private int id;
    private String name;

    public Ship(double totalWeight, int id, String name) {
        this.totalWeight = totalWeight;
        this.id = id;
        this.name = name;
    }

    public double getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(double totalWeight) {
        this.totalWeight = totalWeight;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
